package com.edu.service.impl;

import com.edu.bean.Hobby;
import com.edu.mapper.HobbyMapper;
import com.edu.service.HobbyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HobbyServiceImpl implements HobbyService {

    @Resource
    private HobbyMapper hobbyMapper;

    @Override
    public List<Hobby> getAllHobby() {
        System.out.println(hobbyMapper.selectAllHobbys());
        return hobbyMapper.selectAllHobbys();
    }
}
